Skip to content

Fix use after free when WeakMap is modified during field write #7671

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

TysonAndre
Copy link
Contributor

(When a value's destructor triggers a resizing or rehashing of the WeakMap)

Prior to this PR, this test case would cause errors with USE_ZEND_ALLOC=0 or make test TESTS=-m (implies USE_ZEND_ALLOC=0)

(This type of issue is similar to another (fixed) bug I reported for SplFixedArray - https://bugs.php.net/bug.php?id=81429)

@TysonAndre TysonAndre changed the base branch from master to PHP-8.0 November 20, 2021 20:33
(When a value's destructor triggers a resizing or rehashing of the WeakMap)
@TysonAndre
Copy link
Contributor Author

FAILED TEST SUMMARY
---------------------------------------------------------------------
FPM: Process manager config pm.process_idle_timeout [sapi/fpm/tests/proc-idle-timeout.phpt]

Test failure is spurious and unrelated https://dev.azure.com/phpazuredevops/PHP/_build/results?buildId=21640&view=logs&j=98767452-adc9-546f-46a7-4bcf997bf1db&t=afaea366-bdd0-56b2-e5f3-adec9091eeb8

@TysonAndre TysonAndre deleted the weakmap-dtor-order branch November 20, 2021 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants